package cn.sxt.clinic.service.impl;

import cn.sxt.clinic.pojo.Registered;
import cn.sxt.clinic.mapper.RegisteredMapper;
import cn.sxt.clinic.service.IRegisteredService;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2020-06-29
 */
@Service
public class RegisteredServiceImpl extends ServiceImpl<RegisteredMapper, Registered> implements IRegisteredService {

    @Autowired
    private RegisteredMapper registeredMapper;

    @Override
    public IPage<Registered> selectRegistered(IPage<Registered> page, Wrapper wrapper) {
        return registeredMapper.selectRegistered(page,wrapper);
    }

    @Override
    public List<Map<String, Object>> getRegistered(IPage<Map<String, Object>> page, QueryWrapper wrapper) {
        return baseMapper.getRegistered(page,wrapper);
    }
}
